#include <iostream>
using namespace std;

int main(int argc,char *argv[],char* envp[])
{
    cout << "一共有" << argc << "个参数" <<endl;

    //显示全部参数
    for(int i = 0;i<argc;i++)
    {
        cout << "第" << i << "个参数为：" << argv[i] << endl;
    }

    //显示全部的环境变量

    cout << endl;
    cout << "环境变量：" <<endl;
    for(int i = 0;envp[i]!=0;i++)
    {
        cout << argv[i] << endl;
    }

    return 0;
}